from pylab import *

d0 = loadtxt('11.5v.txt') 
d1 = loadtxt('12v.txt')


# offset = 395*21
# dlen = 5*21

data_num_per_reg = 21
offset = 10+data_num_per_reg*1990
dlen = data_num_per_reg*3

#d0  = d0[offset:offset+dlen,:]
#d1  = d1[offset:offset+dlen,:]

for i in range(4):
	subplot(2,2,i+1)
	plot(d0[:,i],'b.--',alpha=0.50, label='11.5v.txt')
	plot(d1[:,i],'r.--',alpha=0.50, label='12v.txt')
	hlines(2**15+0,xmin=0,xmax=len(d1),linestyle='dashed')
	hlines(-2**15+0,xmin=0,xmax=len(d1),linestyle='dashed')
	legend(loc='best')

show()
